package com.core.Comprimento;

import com.core.Comprimento.ComprimentoBase;

public class Polegada extends ComprimentoBase {
	
	public Polegada(double valueToBeConverted){
		this.valueToBeConverted = valueToBeConverted;
	}
	
	@Override
	public double ToMetro(){
		return this.valueToBeConverted*0.0254;
	}
	
	@Override
	public double ToCentimetro(){
	 return this.valueToBeConverted*2.54;
	}

	@Override
	public double ToMilimetro(){
	 return this.valueToBeConverted*25.4;
	}
	
	@Override
	public double ToQuilometro(){
	 return this.valueToBeConverted*0.0000254;
	}
	
	@Override
	public double ToJarda(){
	 return this.valueToBeConverted*0.0278;
	}

	@Override
	public double ToPe(){
	 return this.valueToBeConverted*0.0833;
	}

}

